package com.moneywelcome.investfacade.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data

@ApiModel("黄金赎回信息")
public class RedeemVo {
    @NotNull(message = "赎回份额不能为空")
    @Min(value =1 ,message ="赎回份额不能小于一" )
    @ApiModelProperty(value = "赎回份额",required = true)
    private Double redeemShares;
//    @NotNull(message = "黄金id不能为空")
//    @ApiModelProperty(value = "黄金id",required = true)
//    private String goldId;
//    @NotNull(message = "用户id不能为空")
//    @ApiModelProperty(value = "用户id",required = true)
//    private int userId;
    @ApiModelProperty(value = "赎回账号",required = true)
    @NotNull
    private Long redeemAccount;
    @ApiModelProperty(value = "持仓id",required = true)
    @NotNull
    private Long financialId;
}
